/**
 * Created by Zzhk on 2017/6/30.
 */
$(function(){
    var fn = ABUS.Fn;
    fn.get({
        url: "/common/login/getUserInfo",
        success: function (data) {
            if (data.result === 1) {
                var _data = data.data;
                $('#wode').renderTemp(_data);

                $(".login_out").on("touchend",function () {
                    fn.page_goto({
                        url:"../../denglu/denglu.html"
                    })
                });

                $(".my_team").on("touchend",function () {
                    fn.page_goto({
                        url:"./zuzhang_wode_member.html"
                    })
                });

                $(".history_business").on("touchend",function () {
                    fn.page_goto({
                        url:"./zuzhang_wode_history.html"
                    })
                })
            } else {
                fn.alert({
                    type: "error",
                    title: data.message
                })
            }
        }
    });
});